package com.itheima.dao;

import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);



    Integer findRoleIdByUserId(@Param("id") Integer id);

    List<Menu> findMenuByRoleId(@Param("id") Integer id);

    Integer findUserIdByUserName(@Param("userName") String userName);

    List<Menu> findMenuByParentId(@Param("id") Integer id);
}